function gotoUrl(url){
	window.location.href=url;
}

function mAlert(options){
	if(typeof(options.title)=="undefined")options.title	= "LeanCloud CMS";
	if(typeof(options.text)=="undefined")options.text	= "";
	$("#my-alert .title").html(options.title);
	$("#my-alert .text").html(options.text);

	var $Alert = $("#my-alert");
	var $confirmBtn = $Alert.find('[data-am-modal-confirm]');
	$confirmBtn.one('click', function() {
		$Alert.modal('close');
		//console.dir(options);
		if($.isFunction(options.onConfirm)){
			options.onConfirm();
		}
		//options.onConfirm();
	});
	if($Alert.is(".am-modal-out")){
		$Alert.modal('open');
	}else{
		$Alert.modal({relatedTarget: this});
	}
}
